/*
 * Copyright (C) 2012 VinaVAC. All rights reserved.
 */
package org.vinavac.mob.mbean;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.vinavac.bean.AbstractSessionBean;
import org.vinavac.bean.CommuneSessionBean;
import org.vinavac.entity.Commune;

/**
 *
 * @author Quang <quangtin3@gmail.com>
 */
@ManagedBean(name = "communeMobileBean")
@SessionScoped
public class CommuneMobileBean extends AbstractMobileBean<Commune> {

    @EJB
    private CommuneSessionBean ejbSessionBean;

    public CommuneMobileBean() {
        super();
    }

    @Override
    protected Commune emptyEntity() {
        return new Commune();
    }

    @Override
    protected AbstractSessionBean<Commune> getSessionBean() {
        return ejbSessionBean;
    }
}
